/** When your routing table is too long, you can split it into small modules**/

import Layout from '@/layout/index.vue'
const mySpaceRouter = [
  {
    path: '/',
    component: Layout,
    redirect: '/mySpace',
    name: 'mySpace',
    meta: {
      title: '个人中心',
      icon: 'School',
      roles: ['ROLE_MANAGER', 'ROLE_BUYER', 'ROLE_WORK'],
    },
    children: [
      {
        path: 'mySpace',
        component: () => import('@/views/mySpace/index.vue'),
        name: 'mySpace',
        meta: {
          title: '个人中心',
          svg: 'my-space-menu',
          activePath: '/mySpace',
          roles: ['ROLE_MANAGER', 'ROLE_BUYER', 'ROLE_WORK'],
        },
      },
    ],
  },
]

export default mySpaceRouter
